.rbUploadWapper {
  :global {
    .ant-upload-list.ant-upload-list-picture-card > .ant-upload-list-item-container,.ant-upload-select {
      width: 8rem !important;
      height: 8rem !important;
    }

    .ant-upload,.ant-upload-select > .ant-upload {
      border-radius: 8px;
      border-color: #1677ff !important;
      background-color: #f3f8ff !important;
    }
  }

  display: flex;
}

.rbUploadModalTitleWapper {
  display: flex;
  align-items: center;

  :global {
    .ant-alert.ant-alert-warning {
      margin-left: 0.5rem;
      padding: 0 0.5rem;
    }
  }
}

.rbUploadModalWapper {
  display: flex;
  min-height: 55vh;
  overflow-y: auto;

  .listWapper {
    height: 55vh;
    width: 19%;
    text-align: center;
    overflow: auto;
    padding: 0.5rem 0;
    margin-right: 0.5rem;
    border: solid 1.5px #bdc3c7;
    border-radius: 0.15rem;

    .listContentWapper {
      width: 80%;
      margin: 0 auto;

      .listItemWapper {
        position: relative;
        cursor: pointer;
        margin-bottom: 0.5rem;

        .listItemIndex {
          position: absolute;
          min-width: 1.25rem;
          max-width: 3rem;
          height: 1.25rem;
          line-height: 1.25rem;
          left: -1.25%;
          top: -1.25%;
          z-index: 1;
          background-color: #2ecc71;
          text-align: center;
          transform: scale(0.85);
          border-top-left-radius: 0.05rem;
          border-bottom-right-radius: 0.15rem;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .listItemIndexActive {
          left: 0;
          top: 0;
          border-top-left-radius: 0.05rem;
        }

        .listItemImageWapper {
          width: 100%;
          position: relative;
          display: inline-block;
          background-color: #ecf0f1;
          border-radius: 0.15rem;

          .listItemImage {
            width: 100%;
            height: 4.25rem;
            vertical-align: middle;
            border-radius: 0.05rem;
          }

          .listItemImageName {
            width: 100%;
            text-align: center;
            transform: scale(0.85);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }

          .listItemImageSize {
            width: 100%;
            text-align: center;
            transform: scale(0.75);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: rgb(140, 140, 140);
          }
        }

        .listItemImageWapperActive {
          border: solid 0.1rem #1677ff;
        }
      }
    }

    // 去除最后一个元素的下边距
    .listContentWapper .listItemWapper:last-child {
      margin-bottom: 0;
    }
  }

  // 去除滚动条显示
  .listWapper::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .cropWapper {
    width: 80%;
    height: 57.5vh;
    display: flex;
    flex-direction: column;

    .cropTopWapper {
      flex: 9;
      display: flex;

      .cropTopCrop {
        flex: 2;
      }

      .cropTopPreview {
        flex: 1;
        margin-left: 0.5rem;
        background-color: #ecf0f1;
        width: 100% !important;
        height: 100% !important;
        max-height: 51vh;
        overflow: scroll;
      }

      .cannotPreviewWapper {
        width: 100%;
        text-align: center;
        margin: auto 0;

        .cannotPreview {
          display: inline-block;
          width: 50%;
          height: 50%;
        }
      }
    }

    .cropBtnWapper {
      flex: 1;
      display: flex;
      justify-content: space-between;
      padding-top: 0.35rem;

      .cropBtnSliderWapper {
        flex: 4;
        display: flex;
        align-items: center;
        justify-content: space-around;

        .cropBtnIcons {
          font-size: 0.8rem;
        }

        .cropBtnSlider {
          width: 80%;
        }
      }

      .cropBtnFileName {
        flex: 3;
        display: flex;
        justify-content: center;
        align-items: center;

        .cropBtnFileNameInput {
          :global {
            .ant-input {
              border-bottom: #bdc3c7 solid 0.1rem;
            }

            .ant-input:focus {
              border-bottom: #1677ff solid 0.1rem;
            }
          }
        }
      }

      .cropBtnSaveOrUploadWapper {
        flex: 2;
        display: flex;
        justify-content: flex-end;
        align-items: center;
      }
    }
  }
}
